import request from '@/utils/request'

// 查询用户第三方列表
export function listUserThird(query) {
  return request({
    url: '/user/userThird/list',
    method: 'get',
    params: query
  })
}

// 查询用户第三方详细
export function getUserThird(id) {
  return request({
    url: '/user/userThird/' + id,
    method: 'get'
  })
}

// 新增用户第三方
export function addUserThird(data) {
  return request({
    url: '/user/userThird',
    method: 'post',
    data: data
  })
}

// 修改用户第三方
export function updateUserThird(data) {
  return request({
    url: '/user/userThird',
    method: 'put',
    data: data
  })
}

// 删除用户第三方
export function delUserThird(id) {
  return request({
    url: '/user/userThird/' + id,
    method: 'delete'
  })
}
